package com.awenhui.demo.feign;

import com.awenhui.demo.feign.dto.GyfcResult;
import com.awenhui.demo.feign.dto.SalesOfNewHouseDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author yuxf
 * @version 1.0
 * @date 2021/7/2 15:03
 */
@FeignClient(name="test",url="https://consolegy.gyfc.net.cn"/*可以从配置取,如：${gyfc.url}*/ )
public interface TestFiegnClient {
    @GetMapping(value = "/api/HpBridge/GetSalesOfNewHouseTest?safetyStrategy=gyfcSignStrategyImpl")
    GyfcResult<SalesOfNewHouseDto> getSalesOfNewHouse(@RequestParam String regionCode,
                                                      @RequestParam String regionName,
                                                      @RequestParam String usage,
                                                      @RequestParam String startDate,
                                                      @RequestParam String endDate);
}
